<?php

namespace app\base\controller;

use think\Controller;
use think\Lang;

class Language extends Controller
{
    public function index(){
        if(request()->isAjax()){
            $lang=Lang::detect();
            cookie('think_var',$lang);
            return json(1);
        }
    }
}
